package com.sright.bcard.common.service.share.dto.common;

import lombok.Data;

import java.util.List;

/**
 * 敏感词审核DTO
 */
@Data
public class ContentCheckDTO{

    /**
     * msg : OK
     * code : 200
     * data : [{"msg":"OK","code":200,"dataId":"d85125fa-f446-4597-85e7-2d75533277ff","results":[{"rate":56.11,"suggestion":"block","details":[{"label":"politics"}],"label":"politics","scene":"antispam"}],"content":"习大大","taskId":"txt7SxmHv44rGB5goToG26OMh-1tkpbp"}]
     * requestId : B0C7B0A1-A8C5-4CEA-B76B-F7F31BD704BA
     */

    private String msg;
    private int code;
    private String requestId;
    private List<DataBean> data;

    @Data
    public static class DataBean {
        /**
         * msg : OK
         * code : 200
         * dataId : d85125fa-f446-4597-85e7-2d75533277ff
         * results : [{"rate":56.11,"suggestion":"block","details":[{"label":"politics"}],"label":"politics","scene":"antispam"}]
         * content : 习大大
         * taskId : txt7SxmHv44rGB5goToG26OMh-1tkpbp
         */

        private String msg;
        private int code;
        private String dataId;
        private String content;
        private String taskId;
        private List<ResultsBean> results;

        @Data
        public static class ResultsBean {
            /**
             * rate : 56.11
             * suggestion : block
             * details : [{"label":"politics"}]
             * label : politics
             * scene : antispam
             */

            private double rate;
            private String suggestion;
            private String label;
            private String scene;
            private List<DetailsBean> details;

            @Data
            public static class DetailsBean {
                /**
                 * label : politics
                 */

                private String label;
            }
        }
    }
}
